package cn.gjculture.shopping.api.entity;

import lombok.Data;
import lombok.Getter;

import java.util.Date;

@Data
public class Customer {
    private String id;
    private String nickname;
    private String name;
    private String sex;
    private String phone;
    private String openid;
    private Integer level=Level.FOCUS.value;
    private Long insertTime;
    //0 是验证过，1是没验证，
    private Integer phoneVerified=1;
    private Long phoneVerifiedTime;
    private Date birthday;
    private Integer status=1;
    private Long updateTime;
    private String headimgurl;
    private Integer score=0;
    private String country;
    private String province;
    private String city;
    private String language;
    private String unionid;
    private String insertTimeStr;
    private String updateTimeStr;
    private Wallet wallet;
    private Long customerNo;
    private Integer jiang;




   public enum Level{
        FOCUS(1), REGISTRY(2),
        VIP1_1(31),VIP1_3(32),VIP1_5(33),VIP1_20(34),VIP1_100(35),
        VIP2_1(41),VIP2_3(42),VIP2_5(43),VIP2_20(44),VIP2_100(45);

        @Getter
        private int value;
        Level(int value){
            this.value=value;
        }

    }
}
